import styles from './index.module.less';
import ConsItem from '@/components/common/ConsItem';
import Summary from '@/components/common/Summary';

export default function (props: {data: any;}) {
    const { data } = props
    return(
        <div className={styles['list']}>
            <ConsItem 
                title={"所在年份"}
                content={data.year}
            />
            <ConsItem 
                title={"幸运石头"}
                content={data.luckeyStone}
            />
            <Summary 
                filed={"健康"}
                content={data?.health[0]}
            />
            <Summary 
                filed={"事业"}
                content={data?.career[0]}
            />
            <Summary 
                filed={"爱情"}
                content={data?.love[0]}
            />
            <Summary 
                filed={"财运"}
                content={data?.finance[0]}
            />
            <Summary 
                filed={"本年"}
                content={data.mima && `${data.mima.info}。${data.mima.text[0]}`}
            />
        </div>
    )
}

